Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Bootstrap 5 support for render_form, render_field, and render_form_row #184

Merged
merged 18 commits into from
Jan 11, 2022

Conversation

greyli
Copy link
Member

@greyli greyli commented Dec 14, 2021

  • Replace custom-control custom-switch to form-check form-switch for switches
  • Remove form-control-file for FileField
  • Replace form-group to mb-3, add a form_group_class parameter (maybe change to form_group_classes?).
  • Add form-label for labels
  • Implement inline form, drop form-inline class
  • Implement horizontal form
  • Implement form row, drop form-row class

docs newly added parameters:

  • form_group_classes / BOOTSTRAP_FORM_GROUP_CLASSES
  • form_inline_classes / BOOTSTRAP_FORM_INLINE_CLASSES

fixes #162

@greyli greyli added this to the 2.0.0 milestone Dec 14, 2021
@greyli greyli marked this pull request as ready for review January 11, 2022 08:25
@greyli greyli merged commit aee7417 into master Jan 11, 2022
@greyli greyli deleted the render-form-b5 branch January 11, 2022 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update macros for Bootstrap 5
2 participants